package com.yzy.ssm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yzy.ssm.dao.student.StudentMapper;
import com.yzy.ssm.po.student.Student;
import com.yzy.ssm.service.FirstService;

@Service
@Transactional
public class FirstServiceImpl implements FirstService {

	@Autowired
	private StudentMapper studentMapper;
	
	@Override
	public Student getStudentById(Integer sid) {
		return studentMapper.selectByPrimaryKey(sid); 
	}
	
}
